﻿@{
    ViewBag.Title = "登录";
    Layout = "~/Views/Shared/_LoginLayout.cshtml";
}
@Scripts.Render("~/Scripts/Login")
<el-tabs class="h-tabs" v-model="state.loginType" v-on:tab-change="tabOnChange">
    <el-tab-pane label="邮箱登录" name="email"></el-tab-pane>
    <el-tab-pane label="手机号登录" name="phone"></el-tab-pane>
</el-tabs>
<el-form ref="ruleFormRef" :model="state" :rules="rules">
    <el-form-item prop="username">
        <el-input v-model="state.username" :placeholder="userNamePlaceHolder" />
    </el-form-item>
    <el-form-item prop="password">
        <el-input v-model="state.password" type="password" placeholder="密码" />
    </el-form-item>
    <el-form-item>
        <el-button class="is-block" size="large" type="primary" v-on:click="subitForm(ruleFormRef)">登录</el-button>
    </el-form-item>
    <section class="flex-container" style="justify-content: space-between; align-items: stretch; align-self: auto;">
        <a href="@Url.Action("Index","Register")">注册新账号</a>
        <a href="@Url.Action("Index","Identify")">忘记密码</a>
    </section>
</el-form>
